#ifndef __GUI_GRAPHICS_H__
#define __GUI_GRAPHICS_H__
//#include "stddefs.h"
#include "gui_datatypes.h"

extern E_ERR_CODE init_graph(void);
extern E_ERR_CODE HideOSD(void);
extern E_ERR_CODE DisplayOSD(void);
extern E_ERR_CODE close_graph(void);

#if (GRAPHICS_COLOR_MODE == 32)
int DrawImage_Buf(int x, int y, int w, int h, U32 *buffer);
int Draw_Buf(int x, int y, int w, int h, U32 *buffer);
int DrawImage(int x, int y, int w, int h, U32 *buffer);
int GetImage(int x, int y, int w, int h, U32 *buffer);
int draw_color(int x, int y, int w, int h, U32 color);
#elif ((GRAPHICS_COLOR_MODE == 16) || (GRAPHICS_COLOR_MODE == 15))
int DrawImage_Buf(int x, int y, int w, int h, U16 *buffer);
int Draw_Buf(int x, int y, int w, int h, U16 *buffer);
int DrawImage(int x, int y, int w, int h, U16 *buffer);
int GetImage(int x, int y, int w, int h, U16 *buffer);
int draw_color(int x, int y, int w, int h, U16 color);
#endif

#if (GRAPHICS_COLOR_MODE == 15)
int SetColorAlpha(U8 opacity);
#endif

int LAYER_DrawCopyMap(int layernum,const char *function,int line);
void  VDISetBackground(BOOL  show);

#endif

